package com.xiamaliu.demo.service.impl;

import com.xiamaliu.spring.annotation.GPService;
import com.xiamaliu.demo.service.IModifyService;

@GPService
public class ModifyService implements IModifyService {


    @Override
    public String add(String name, String addr) throws Exception {
        // return "modifyService add, name=" + name + " addr=" + addr;
        throw new Exception("模拟抛出异常");
    }

    @Override
    public String edit(Integer id, String name) {
        return "modifyService edit, id=" + id + " name=" + name;
    }

    @Override
    public String delete(Integer id) {
        return "modifyService id=" + id;
    }
}
